package com.igeek.d0619.test2;

/**
 * @Author: zhiyu
 * @Date:18:29
 * @DESC:
 */
public class Teacher {
    @MyValue("3")
    private int workAge;
    @MyValue("软件工程")
    private String major;
    @MyAutowired(beanName = "p1")
    private Person person;

    public Teacher() {
    }

    public Teacher(int workAge, String major, Person person) {
        this.workAge = workAge;
        this.major = major;
        this.person = person;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "workAge=" + workAge +
                ", major='" + major + '\'' +
                ", person=" + person +
                '}';
    }
}
